package com.yida.system.api.domain;

import java.math.BigDecimal;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;

/**
 * 系统黑名单对象 sys_black_list
 * 
 * @author wws
 * @date 2023-03-22
 */
public class SysBlackList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** ip地址 */
    @Excel(name = "ip地址",sort = 0)
    @ApiModelProperty("ip地址")
    private String ipAddress;

    /** 禁用时长类型（0：永久；1：计时） */
    @Excel(name = "禁用时长类型",sort = 1)
    @ApiModelProperty("禁用时长类型（0：永久；1：计时）")
    private String limitTimeType;

    /** 禁用时长（分钟） */
    @Excel(name = "禁用时长/分钟",sort = 2)
    @ApiModelProperty("禁用时长（分钟）")
    private BigDecimal limitTime;

    /** 删除标志(0：正常，1：删除) */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }
    public void setLimitTimeType(String limitTimeType) 
    {
        this.limitTimeType = limitTimeType;
    }

    public String getLimitTimeType() 
    {
        return limitTimeType;
    }
    public void setLimitTime(BigDecimal limitTime) 
    {
        this.limitTime = limitTime;
    }

    public BigDecimal getLimitTime() 
    {
        return limitTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ipAddress", getIpAddress())
            .append("limitTimeType", getLimitTimeType())
            .append("limitTime", getLimitTime())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
